From f1f14142b2bde80fb9d882f63e3f447ff6daf7d2 Mon Sep 17 00:00:00 2001 From: Treece Burgess Date: Fri, 31 Oct 2025 22:35:53 +0000 Subject: [PATCH 1/2] Test --- .github/workflows/main.yml | 10 ++-------- src/test_exit.c | 8 ++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/test_exit.c diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 189764d..4dcf2e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,12 +5,6 @@ name: CI # Controls when the workflow will run on: push: - paths: - - 'src/components/cuda/' - # Triggers the workflow on push or pull request events but only for the "main" branch - pull_request: - paths: - - 'src/components/cuda/' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -34,5 +28,5 @@ jobs: # Runs a set of commands using the runners shell - name: Run a multi-line script run: | - echo Add other actions to build, - echo test, and deploy your project. + gcc src/test_exit.c -o test_exit + ./test_exit diff --git a/src/test_exit.c b/src/test_exit.c new file mode 100644 index 0000000..0e43016 --- /dev/null +++ b/src/test_exit.c @@ -0,0 +1,8 @@ + +#include + +int main() +{ + exit(EXIT_FAILURE); + +} From f3d56ca875bd2a958fb8e6f9b13816ecc6d7080b Mon Sep 17 00:00:00 2001 From: Treece Burgess Date: Fri, 31 Oct 2025 23:18:57 +0000 Subject: [PATCH 2/2] testing call func fail --- src/test_exit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test_exit.c b/src/test_exit.c index 0e43016..75f4089 100644 --- a/src/test_exit.c +++ b/src/test_exit.c @@ -1,8 +1,12 @@ #include -int main() -{ +void test_func() { exit(EXIT_FAILURE); } + +int main() +{ + test_func(); +}