Fix interop CLI test (forced to dwarf-4 debug info).
authorMikhail Kurinnoi <m.kurinnoi@samsung.com>
Fri, 28 Jun 2024 13:21:09 +0000 (16:21 +0300)
committerGleb Balykov/Advanced System SW Lab /SRR/Staff Engineer/Samsung Electronics <g.balykov@samsung.com>
Sat, 6 Jul 2024 10:34:33 +0000 (13:34 +0300)
packaging/netcoredbg.spec
test-suite/run_tests.sh

index 365f39f97173f6dfd6a14b31029ccf961c930dba..0f54fd42d10d7ea2e02d8be36eb029fc8297d557 100644 (file)
@@ -148,7 +148,7 @@ fi
 
 # Native tests
 # CLITestInteropBreakpoint
-g++ -g -fPIC -c "../test-suite/CLITestInteropBreakpoint/program.c" -o ./test_breakpoint.o
+g++ -g -gdwarf-4 -fPIC -c "../test-suite/CLITestInteropBreakpoint/program.c" -o ./test_breakpoint.o
 g++ -g -fPIC -shared -o libtest_breakpoint.so test_breakpoint.o
 
 %install
index c2b39a9ae9ca9c89e111c195bd4fa536b9a273b3..9e87f9ff98ac6d3f0bc4b40deef208145697cc92 100755 (executable)
@@ -197,7 +197,7 @@ for TEST_NAME in $TEST_NAMES; do
         pushd $(pwd)
         mkdir "$TEST_NAME/build"
         cd "$TEST_NAME/build"
-        clang++ -g -fPIC -c "../program.c" -o ./test_breakpoint.o
+        clang++ -g -gdwarf-4 -fPIC -c "../program.c" -o ./test_breakpoint.o
         clang++ -g -fPIC -shared -o "../bin/Debug/netcoreapp3.1/libtest_breakpoint.so" test_breakpoint.o
         # Note, we don't remove build directory for test possible issues with interop test execution/build.
         popd