aboutsummaryrefslogtreecommitdiffstats
path: root/longbow/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'longbow/src/examples')
-rw-r--r--longbow/src/examples/.gitignore5
-rwxr-xr-xlongbow/src/examples/example1.c42
-rwxr-xr-xlongbow/src/examples/minimal.c25
-rwxr-xr-xlongbow/src/examples/pointer.c32
-rwxr-xr-xlongbow/src/examples/require.c41
-rwxr-xr-xlongbow/src/examples/testAssertion.c22
-rwxr-xr-xlongbow/src/examples/testClipboard.c71
-rwxr-xr-xlongbow/src/examples/testExample1.c97
-rwxr-xr-xlongbow/src/examples/testLongBow.c152
-rwxr-xr-xlongbow/src/examples/testRunnerSkipped.c68
-rwxr-xr-xlongbow/src/examples/testTearDown.c90
-rwxr-xr-xlongbow/src/examples/testUnimplemented.c61
-rwxr-xr-xlongbow/src/examples/test_minimal.c63
-rw-r--r--longbow/src/examples/tutorial/.gitignore3
-rw-r--r--longbow/src/examples/tutorial/test_tutorial1.c18
-rw-r--r--longbow/src/examples/tutorial/test_tutorial10.c68
-rw-r--r--longbow/src/examples/tutorial/test_tutorial11.c76
-rw-r--r--longbow/src/examples/tutorial/test_tutorial12.c100
-rw-r--r--longbow/src/examples/tutorial/test_tutorial13.c108
-rw-r--r--longbow/src/examples/tutorial/test_tutorial2.c20
-rw-r--r--longbow/src/examples/tutorial/test_tutorial3.c25
-rw-r--r--longbow/src/examples/tutorial/test_tutorial4.c35
-rw-r--r--longbow/src/examples/tutorial/test_tutorial5.c36
-rw-r--r--longbow/src/examples/tutorial/test_tutorial6.c40
-rw-r--r--longbow/src/examples/tutorial/test_tutorial7.c50
-rw-r--r--longbow/src/examples/tutorial/test_tutorial8.c52
-rw-r--r--longbow/src/examples/tutorial/test_tutorial9.c58
-rwxr-xr-xlongbow/src/examples/tutorial/tutorial.c45
28 files changed, 0 insertions, 1503 deletions
diff --git a/longbow/src/examples/.gitignore b/longbow/src/examples/.gitignore
deleted file mode 100644
index 1b4775c8..00000000
--- a/longbow/src/examples/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-*.gcno
-*.gcda
-*.dSYM
-*.gcov
-testLongBow
diff --git a/longbow/src/examples/example1.c b/longbow/src/examples/example1.c
deleted file mode 100755
index 31bbadbf..00000000
--- a/longbow/src/examples/example1.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * example1.c
- *
- */
-
-#include <unistd.h>
-#include <stdbool.h>
-#include <signal.h>
-
-int
-alwaysTrue()
-{
- return true;
-}
-
-int
-alwaysFalse()
-{
- return false;
-}
-
-int
-alwaysSignalled()
-{
- kill(getpid(), SIGTERM);
- return true;
-}
diff --git a/longbow/src/examples/minimal.c b/longbow/src/examples/minimal.c
deleted file mode 100755
index 47f7e7fe..00000000
--- a/longbow/src/examples/minimal.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * minimal.c
- *
- */
-
-int
-alwaysSucceed()
-{
- return 1;
-}
diff --git a/longbow/src/examples/pointer.c b/longbow/src/examples/pointer.c
deleted file mode 100755
index 0a0fef95..00000000
--- a/longbow/src/examples/pointer.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <LongBow/runtime.h>
-#include <unistd.h>
-#include <string.h>
-
-void
-function(char *pointer)
-{
- assertNotNull(pointer, "The pointer cannot be NULL.");
-
- write(1, pointer, strlen(pointer));
-}
-
-int
-main(int argc, char *argv[])
-{
- function(0);
-}
diff --git a/longbow/src/examples/require.c b/longbow/src/examples/require.c
deleted file mode 100755
index 31055aa8..00000000
--- a/longbow/src/examples/require.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdio.h>
-#include "../runtime.h"
-
-# define longBowAssert(eventPointer, condition, ...) \
- longBowRuntime_EventEvaluation(eventPointer); \
- if (longBowIsFalse(condition) && \
- (longBowRuntime_EventTrigger(eventPointer, longBowLocation_Create(__FILE__, longBow_function, __LINE__), #condition, __VA_ARGS__), true)) \
- for (; true; abort())
-
-
-int
-main(int argc, char *argv[argc])
-{
- int condition = 1;
-
- longBowAssert(&LongBowAssertEvent, condition == 1, "Message %d", 2)
- {
- printf("Should not have Triggered\n");
- };
- longBowAssert(&LongBowAssertEvent, condition == 0, "Message %d", 2)
- {
- printf("Triggered\n");
- };
-
- longBowAssert(&LongBowAssertEvent, condition == 0, "Message %d", 2);
-}
diff --git a/longbow/src/examples/testAssertion.c b/longbow/src/examples/testAssertion.c
deleted file mode 100755
index eb60db91..00000000
--- a/longbow/src/examples/testAssertion.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "../runtime.h"
-
-int
-main(int argc, char *argv[])
-{
- assertTrue(0, "Force this assertion.");
-}
diff --git a/longbow/src/examples/testClipboard.c b/longbow/src/examples/testClipboard.c
deleted file mode 100755
index 1e6a5b94..00000000
--- a/longbow/src/examples/testClipboard.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- *
- */
-#include <stdio.h>
-#include <string.h>
-
-#include <LongBow/testing.h>
-#include <LongBow/debugging.h>
-
-LONGBOW_TEST_RUNNER(testClipboard)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(testClipboard)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(testClipboard)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, testClipboard);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- char *testData = strdup("Hello World");
- longBowTestCase_SetClipBoardData(testCase, testData, free);
-
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, testClipboard)
-{
- char *testData = longBowTestCase_GetClipBoardData(testCase);
- printf("Shared state '%s'\n", testData);
-}
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(testClipboard);
- int exitStatus = longBowMain(argc, argv, testRunner, NULL);
- longBowTestRunner_Destroy(&testRunner);
- exit(exitStatus);
-}
diff --git a/longbow/src/examples/testExample1.c b/longbow/src/examples/testExample1.c
deleted file mode 100755
index d26294a1..00000000
--- a/longbow/src/examples/testExample1.c
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdio.h>
-#include "../unit-test.h"
-
-#include "example1.c"
-
-LONGBOW_TEST_RUNNER(example1)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
- LONGBOW_RUN_TEST_FIXTURE(Local);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(example1)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(example1)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, strlen);
- LONGBOW_RUN_TEST_CASE(Global, alwaysFail);
- LONGBOW_RUN_TEST_CASE(Global, alwaysSignalled);
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, alwaysFail)
-{
- assertTrue(alwaysFalse(), "This test must always fail.")
- {
- printf("And this is extra code that is executed when the assertion fails");
- }
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSignalled)
-{
- kill(getpid(), SIGTERM);
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSucceed)
-{
- assertTrue(alwaysTrue(), "This test must always succeed.");
-}
-
-LONGBOW_TEST_CASE(Global, strlen)
-{
- assertNotNull(NULL, "Parameter must be a non-null char pointer.");
-}
-
-LONGBOW_TEST_FIXTURE(Local)
-{
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Local)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Local)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(example1);
- exit(longBowMain(argc, argv, testRunner, NULL));
-}
diff --git a/longbow/src/examples/testLongBow.c b/longbow/src/examples/testLongBow.c
deleted file mode 100755
index 7c1fd949..00000000
--- a/longbow/src/examples/testLongBow.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * test_LongBow.c
- *
- */
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <signal.h>
-#include <sys/errno.h>
-
-#include "../unit-test.h"
-
-
-LONGBOW_TEST_RUNNER(LongBow)
-{
- LONGBOW_RUN_TEST_FIXTURE(LongBowFixture);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(LongBow)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(LongBow)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(LongBowFixture)
-{
- LONGBOW_RUN_TEST_CASE(LongBowFixture, alwaysSucceed);
- LONGBOW_RUN_TEST_CASE(LongBowFixture, alwaysUnimplemented);
- LONGBOW_RUN_TEST_CASE(LongBowFixture, alwaysImpotent);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(LongBowFixture)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(LongBowFixture)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(LongBowFixture, testErrno)
-{
- errno = ENOENT;
- assertTrue(0, "Errno test");
-}
-
-LONGBOW_TEST_CASE(LongBowFixture, alwaysSucceed)
-{
- assertTrue(1, "alwaysSucceed");
-}
-
-LONGBOW_TEST_CASE(LongBowFixture, alwaysImpotent)
-{
-}
-
-LONGBOW_TEST_CASE_EXPECTS(LongBowFixture, testEvent, .event = &LongBowAssertEvent)
-{
- assertTrue(0, "testEvent");
-}
-
-LONGBOW_TEST_CASE_EXPECTS(LongBowFixture, alwaysFail, .status = LONGBOW_STATUS_FAILED, .event = &LongBowAssertEvent)
-{
- assertTrue(0, "alwaysFail");
-}
-
-LONGBOW_TEST_CASE_EXPECTS(LongBowFixture, alwaysSigTERM, .status = LONGBOW_STATUS_SIGNAL(SIGTERM))
-{
- kill(getpid(), SIGTERM);
-}
-
-LONGBOW_TEST_CASE_EXPECTS(LongBowFixture, alwaysSEGV, .event = &LongBowEventSIGSEGV)
-{
- int *p = 0;
- int i = *p;
- printf("not used %d\n", i);
-}
-
-LONGBOW_TEST_CASE(LongBowFixture, alwaysUnimplemented)
-{
- testUnimplemented("alwaysUnimplemented");
-}
-
-LONGBOW_TEST_CASE(LongBowFixture, alwaysWarn)
-{
- testWarn("alwaysWarn");
-}
-
-LONGBOW_TEST_CASE_EXPECTS(LongBowFixture, alwaysSkip, .event = &LongBowTestSkippedEvent)
-{
- testSkip("alwaysSkip");
-}
-
-LONGBOW_TEST_CASE_EXPECTS(LongBowFixture, alwaysTrap, .status = LONGBOW_STATUS_FAILED)
-{
- trapNotImplemented("alwaysTrap");
-}
-
-LONGBOW_TEST_FIXTURE(TestTearDownWarning)
-{
- LONGBOW_RUN_TEST_CASE(TestTearDownWarning, alwaysFail);
- LONGBOW_RUN_TEST_CASE(TestTearDownWarning, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(TestTearDownWarning)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(TestTearDownWarning)
-{
- return LONGBOW_STATUS_TEARDOWN_WARNED;
-}
-
-LONGBOW_TEST_CASE(TestTearDownWarning, alwaysFail)
-{
- assertTrue(0, "alwaysFail");
-}
-
-LONGBOW_TEST_CASE(TestTearDownWarning, alwaysSucceed)
-{
- assertTrue(1, "alwaysSucceed");
-}
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(LongBow);
- int status = longBowMain(argc, argv, testRunner, NULL);
- longBowTestRunner_Destroy(&testRunner);
-
- exit(status);
-}
diff --git a/longbow/src/examples/testRunnerSkipped.c b/longbow/src/examples/testRunnerSkipped.c
deleted file mode 100755
index f071678d..00000000
--- a/longbow/src/examples/testRunnerSkipped.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- */
-
-#include <stdio.h>
-
-#include <LongBow/unit-test.h>
-
-LONGBOW_TEST_RUNNER(Example1)
-{
- LONGBOW_RUN_TEST_FIXTURE(FixtureA);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(Example1)
-{
- return LONGBOW_STATUS_SETUP_SKIPTESTS;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(Example1)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(FixtureA)
-{
- LONGBOW_RUN_TEST_CASE(FixtureA, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(FixtureA)
-{
- assertTrue(0, "This should have been skipped and never be called.");
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(FixtureA)
-{
- assertTrue(0, "This should have been skipped and never be called.");
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(FixtureA, alwaysSucceed)
-{
- assertTrue(0, "This should have been skipped and never be called.");
-}
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(Example1);
- int status = longBowMain(argc, argv, testRunner, NULL);
- longBowTestRunner_Destroy(&testRunner);
-
- exit(status);
-}
diff --git a/longbow/src/examples/testTearDown.c b/longbow/src/examples/testTearDown.c
deleted file mode 100755
index 183563d9..00000000
--- a/longbow/src/examples/testTearDown.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- *
- */
-#include <stdio.h>
-#include <string.h>
-
-#include <LongBow/testing.h>
-#include <LongBow/debugging.h>
-
-LONGBOW_TEST_RUNNER(testTearDown)
-{
- LONGBOW_RUN_TEST_FIXTURE(Succeeded);
- LONGBOW_RUN_TEST_FIXTURE(Warned);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(testTearDown)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(testTearDown)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Succeeded)
-{
- LONGBOW_RUN_TEST_CASE(Succeeded, testTearDown);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Succeeded)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Succeeded)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Succeeded, testTearDown)
-{
- assertTrue(true, "");
-}
-
-
-LONGBOW_TEST_FIXTURE(Warned)
-{
- LONGBOW_RUN_TEST_CASE(Warned, alwaysWarn);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Warned)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Warned)
-{
- return LONGBOW_STATUS_TEARDOWN_WARNED;
-}
-
-LONGBOW_TEST_CASE(Warned, alwaysWarn)
-{
- assertTrue(true, "");
-}
-
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(testTearDown);
- int exitStatus = longBowMain(argc, argv, testRunner, NULL);
- longBowTestRunner_Destroy(&testRunner);
- exit(exitStatus);
-}
diff --git a/longbow/src/examples/testUnimplemented.c b/longbow/src/examples/testUnimplemented.c
deleted file mode 100755
index 3ccf18d1..00000000
--- a/longbow/src/examples/testUnimplemented.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "../unit-test.h"
-
-LONGBOW_TEST_RUNNER(Unimplemented)
-{
- LONGBOW_RUN_TEST_FIXTURE(Unimplemented);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(Unimplemented)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(Unimplemented)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Unimplemented)
-{
- LONGBOW_RUN_TEST_CASE(Unimplemented, Unimplemented);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Unimplemented)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Unimplemented)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Unimplemented, Unimplemented)
-{
- testUnimplemented("Unimplemented");
-}
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(Unimplemented);
- int status = longBowMain(argc, argv, testRunner, NULL);
- longBowTestRunner_Destroy(&testRunner);
-
- exit(status);
-}
diff --git a/longbow/src/examples/test_minimal.c b/longbow/src/examples/test_minimal.c
deleted file mode 100755
index 5089071c..00000000
--- a/longbow/src/examples/test_minimal.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "../unit-test.h"
-
-#include "minimal.c"
-
-LONGBOW_TEST_RUNNER(Example1)
-{
- LONGBOW_RUN_TEST_FIXTURE(FixtureA);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(Example1)
-{
- return true;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(Example1)
-{
- return true;
-}
-
-LONGBOW_TEST_FIXTURE(FixtureA)
-{
- LONGBOW_RUN_TEST_CASE(FixtureA, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(FixtureA)
-{
- return true;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(FixtureA)
-{
- return true;
-}
-
-LONGBOW_TEST_CASE(FixtureA, alwaysSucceed)
-{
- assertTrue(alwaysSucceed(), "This must always succeed.");
-}
-
-int
-main(int argc, char *argv[])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(Example1);
- int status = longBowMain(argc, argv, testRunner, NULL);
- longBowTestRunner_Destroy(&testRunner);
-
- exit(status);
-}
diff --git a/longbow/src/examples/tutorial/.gitignore b/longbow/src/examples/tutorial/.gitignore
deleted file mode 100644
index fb63b40b..00000000
--- a/longbow/src/examples/tutorial/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-test_tutorial11
-test_tutorial12
-test_tutorial13
diff --git a/longbow/src/examples/tutorial/test_tutorial1.c b/longbow/src/examples/tutorial/test_tutorial1.c
deleted file mode 100644
index 311b5357..00000000
--- a/longbow/src/examples/tutorial/test_tutorial1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
diff --git a/longbow/src/examples/tutorial/test_tutorial10.c b/longbow/src/examples/tutorial/test_tutorial10.c
deleted file mode 100644
index 2eb62dc4..00000000
--- a/longbow/src/examples/tutorial/test_tutorial10.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSucceed)
-{
- bool result = alwaysSucceed();
-
- assertTrue(result, "This test must always succeed.");
-}
-
-int
-main(int argc, char *argv[argc])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(myTutorialTest);
- int status = LONGBOW_TEST_MAIN(argc, argv, testRunner);
-
- longBowTestRunner_Destroy(&testRunner);
- exit(status);
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial11.c b/longbow/src/examples/tutorial/test_tutorial11.c
deleted file mode 100644
index 58d44ed4..00000000
--- a/longbow/src/examples/tutorial/test_tutorial11.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
- LONGBOW_RUN_TEST_CASE(Global, alwaysFail);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSucceed)
-{
- bool result = alwaysSucceed();
-
- assertTrue(result, "This test must always succeed.");
-}
-
-LONGBOW_TEST_CASE(Global, alwaysFail)
-{
- bool result = alwaysFail();
-
- assertTrue(result, "This test will fail.");
-}
-
-int
-main(int argc, char *argv[argc])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(myTutorialTest);
- int status = LONGBOW_TEST_MAIN(argc, argv, testRunner);
-
- longBowTestRunner_Destroy(&testRunner);
- exit(status);
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial12.c b/longbow/src/examples/tutorial/test_tutorial12.c
deleted file mode 100644
index 63a2dc52..00000000
--- a/longbow/src/examples/tutorial/test_tutorial12.c
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Static);
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
- LONGBOW_RUN_TEST_CASE(Global, alwaysFail);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSucceed)
-{
- bool result = alwaysSucceed();
-
- assertTrue(result, "This test must always succeed.");
-}
-
-LONGBOW_TEST_CASE(Global, alwaysFail)
-{
- bool result = alwaysFail();
-
- assertTrue(result, "This test will fail.");
-}
-
-
-LONGBOW_TEST_FIXTURE(Static)
-{
- LONGBOW_RUN_TEST_CASE(Static, _privateFunction);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Static)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Static)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Static, _privateFunction)
-{
- bool result = _privateFunction();
-
- assertTrue(result, "This test must always succeed.");
-}
-
-int
-main(int argc, char *argv[argc])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(myTutorialTest);
- int status = LONGBOW_TEST_MAIN(argc, argv, testRunner);
-
- longBowTestRunner_Destroy(&testRunner);
- exit(status);
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial13.c b/longbow/src/examples/tutorial/test_tutorial13.c
deleted file mode 100644
index 6d35c9b6..00000000
--- a/longbow/src/examples/tutorial/test_tutorial13.c
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Static);
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
- LONGBOW_RUN_TEST_CASE(Global, alwaysFail);
- LONGBOW_RUN_TEST_CASE(Global, blowUp);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSucceed)
-{
- bool result = alwaysSucceed();
-
- assertTrue(result, "This test must always succeed.");
-}
-
-LONGBOW_TEST_CASE(Global, alwaysFail)
-{
- bool result = alwaysFail();
-
- assertTrue(result, "This test will fail.");
-}
-
-LONGBOW_TEST_CASE_EXPECTS(Global, blowUp, .event = &LongBowEventSIGSEGV)
-{
- blowUp();
-
- assertTrue(false, "This will not be executed");
-}
-
-
-LONGBOW_TEST_FIXTURE(Static)
-{
- LONGBOW_RUN_TEST_CASE(Static, _privateFunction);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Static)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Static)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Static, _privateFunction)
-{
- bool result = _privateFunction();
-
- assertTrue(result, "This test must always succeed.");
-}
-
-int
-main(int argc, char *argv[argc])
-{
- LongBowRunner *testRunner = LONGBOW_TEST_RUNNER_CREATE(myTutorialTest);
- int status = LONGBOW_TEST_MAIN(argc, argv, testRunner);
-
- longBowTestRunner_Destroy(&testRunner);
- exit(status);
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial2.c b/longbow/src/examples/tutorial/test_tutorial2.c
deleted file mode 100644
index 68e1d39a..00000000
--- a/longbow/src/examples/tutorial/test_tutorial2.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
diff --git a/longbow/src/examples/tutorial/test_tutorial3.c b/longbow/src/examples/tutorial/test_tutorial3.c
deleted file mode 100644
index fb635846..00000000
--- a/longbow/src/examples/tutorial/test_tutorial3.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial4.c b/longbow/src/examples/tutorial/test_tutorial4.c
deleted file mode 100644
index b8461fe4..00000000
--- a/longbow/src/examples/tutorial/test_tutorial4.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial5.c b/longbow/src/examples/tutorial/test_tutorial5.c
deleted file mode 100644
index c51ba7ac..00000000
--- a/longbow/src/examples/tutorial/test_tutorial5.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial6.c b/longbow/src/examples/tutorial/test_tutorial6.c
deleted file mode 100644
index a87c2466..00000000
--- a/longbow/src/examples/tutorial/test_tutorial6.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial7.c b/longbow/src/examples/tutorial/test_tutorial7.c
deleted file mode 100644
index 25601997..00000000
--- a/longbow/src/examples/tutorial/test_tutorial7.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
diff --git a/longbow/src/examples/tutorial/test_tutorial8.c b/longbow/src/examples/tutorial/test_tutorial8.c
deleted file mode 100644
index 35fad611..00000000
--- a/longbow/src/examples/tutorial/test_tutorial8.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
diff --git a/longbow/src/examples/tutorial/test_tutorial9.c b/longbow/src/examples/tutorial/test_tutorial9.c
deleted file mode 100644
index c92fc459..00000000
--- a/longbow/src/examples/tutorial/test_tutorial9.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-* /
-
-#include "tutorial.c"
-
-#include <LongBow/unit-test.h>
-
-
-LONGBOW_TEST_RUNNER(myTutorialTest)
-{
- LONGBOW_RUN_TEST_FIXTURE(Global);
-}
-
-LONGBOW_TEST_RUNNER_SETUP(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_RUNNER_TEARDOWN(myTutorialTest)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE(Global)
-{
- LONGBOW_RUN_TEST_CASE(Global, alwaysSucceed);
-}
-
-LONGBOW_TEST_FIXTURE_SETUP(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_FIXTURE_TEARDOWN(Global)
-{
- return LONGBOW_STATUS_SUCCEEDED;
-}
-
-LONGBOW_TEST_CASE(Global, alwaysSucceed)
-{
- bool result = alwaysSucceed();
-
- assertTrue(result, "This test must always succeed.");
-}
diff --git a/longbow/src/examples/tutorial/tutorial.c b/longbow/src/examples/tutorial/tutorial.c
deleted file mode 100755
index ff296423..00000000
--- a/longbow/src/examples/tutorial/tutorial.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <unistd.h>
-#include <stdbool.h>
-#include <signal.h>
-
-static bool
-_privateFunction()
-{
- return true;
-}
-
-bool
-alwaysSucceed()
-{
- return _privateFunction();
-}
-
-bool
-alwaysFail()
-{
- return false;
-}
-
-bool
-blowUp()
-{
- char *p = 0;
- *p = 0;
-
- return true;
-}