403Webshell
Server IP : 192.64.118.117  /  Your IP : 13.59.235.245
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/cxx/Core/SpawningKit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/cxx/Core/SpawningKit/JourneyTest.cpp
#include <TestSupport.h>
#include <Core/SpawningKit/Journey.h>

using namespace Passenger;
using namespace Passenger::SpawningKit;

namespace tut {
	struct Core_SpawningKit_JourneyTest: public TestBase {
	};

	DEFINE_TEST_GROUP(Core_SpawningKit_JourneyTest);

	TEST_METHOD(1) {
		set_test_name("Constructing a SPAWN_DIRECTLY journey results in"
			" the appropriate steps being defined in the journey");
		Journey journey(SPAWN_DIRECTLY, true);
		ensure("(1)", journey.hasStep(SPAWNING_KIT_PREPARATION));
		ensure("(2)", journey.hasStep(SUBPROCESS_EXEC_WRAPPER));
		ensure("(3)", !journey.hasStep(SPAWNING_KIT_CONNECT_TO_PRELOADER));
		ensure("(4)", !journey.hasStep(SUBPROCESS_PREPARE_AFTER_FORKING_FROM_PRELOADER));
	}

	TEST_METHOD(2) {
		set_test_name("Constructing a START_PRELOADER journey results in"
			" the appropriate steps being defined in the journey");
		Journey journey(START_PRELOADER, true);
		ensure("(1)", journey.hasStep(SPAWNING_KIT_PREPARATION));
		ensure("(2)", journey.hasStep(SUBPROCESS_EXEC_WRAPPER));
		ensure("(3)", !journey.hasStep(SPAWNING_KIT_CONNECT_TO_PRELOADER));
		ensure("(4)", !journey.hasStep(SUBPROCESS_PREPARE_AFTER_FORKING_FROM_PRELOADER));
	}

	TEST_METHOD(3) {
		set_test_name("Constructing a SPAWN_THROUGH_PRELOADER journey results in"
			" the appropriate steps being defined in the journey");
		Journey journey(SPAWN_THROUGH_PRELOADER, true);
		ensure("(1)", journey.hasStep(SPAWNING_KIT_PREPARATION));
		ensure("(2)", !journey.hasStep(SUBPROCESS_BEFORE_FIRST_EXEC));
		ensure("(3)", journey.hasStep(SPAWNING_KIT_CONNECT_TO_PRELOADER));
		ensure("(4)", journey.hasStep(SUBPROCESS_PREPARE_AFTER_FORKING_FROM_PRELOADER));
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit