Commit 14bef671 authored by Scott Vokes's avatar Scott Vokes
Browse files

Only ignore FLUSHALLDATA system test when testing against simulator.

(It's a no-op in the simulator, so testing whether asynchronous PUTs
and DELETEs are successfully completed by a FLUSHALLDATA will never
give accurate info.)
parent c942a889
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -84,3 +84,8 @@ void SystemTestTearDown(SystemTestFixture* fixture)

    KineticClient_Shutdown();
}

bool SystemTestIsUnderSimulator(void)
{
    return 0 == strncmp(SYSTEM_TEST_HOST, "localhost", strlen("localhost"));
}
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ typedef struct _SystemTestFixture {
void SystemTestSetup(SystemTestFixture* fixture);
void SystemTestTearDown(SystemTestFixture* fixture);
void SystemTestSuiteTearDown(SystemTestFixture* fixture);
bool SystemTestIsUnderSimulator(void);

#define SYSTEM_TEST_SUITE_TEARDOWN(_fixture) \
void test_Suite_TearDown(void) \
+3 −1
Original line number Diff line number Diff line
@@ -120,7 +120,9 @@ static void no_op_callback(KineticCompletionData* kinetic_data, void* client_dat

void test_Flush_should_flush_pending_async_PUTs_and_DELETEs(void)
{
    if (SystemTestIsUnderSimulator()) {
        TEST_IGNORE_MESSAGE("FLUSHALLDATA is a no-op in the simulator.");
    }

    // Arguments shared between entries
    uint8_t VersionData[1024];