diff --git a/test/syscall_test/ltp/Makefile b/test/syscall_test/ltp/Makefile index 504a9bed8..d6d75315e 100644 --- a/test/syscall_test/ltp/Makefile +++ b/test/syscall_test/ltp/Makefile @@ -9,11 +9,12 @@ RUN_BASH := $(CUR_DIR)/run_ltp_test.sh ALL_TESTS := $(CUR_DIR)/testcases/all.txt EXT2_BLOCKLIST := $(CUR_DIR)/testcases/blocked/ext2.txt EXFAT_BLOCKLIST := $(CUR_DIR)/testcases/blocked/exfat.txt +SMP_BLOCKLIST := $(CUR_DIR)/testcases/blocked/smp.txt .PHONY: all all: $(TARGET_DIR) -$(TARGET_DIR): $(RUN_BASH) $(ALL_TESTS) $(EXT2_BLOCKLIST) $(EXFAT_BLOCKLIST) +$(TARGET_DIR): $(RUN_BASH) $(ALL_TESTS) $(EXT2_BLOCKLIST) $(EXFAT_BLOCKLIST) $(SMP_BLOCKLIST) @rm -rf $@ && mkdir -p $@ @# Prepare tests dir for test binaries @mkdir -p $@/testcases/bin @@ -26,6 +27,10 @@ $(TARGET_DIR): $(RUN_BASH) $(ALL_TESTS) $(EXT2_BLOCKLIST) $(EXFAT_BLOCKLIST) else \ cp -f $@/all.txt $@/filtered.txt; \ fi; + @if [ "$(SMP)" != "1" ]; then \ + grep -vxF -f $(SMP_BLOCKLIST) $@/filtered.txt > $@/filtered.txt.tmp; \ + mv $@/filtered.txt.tmp $@/filtered.txt; \ + fi; @# Process syscall testcases and copy binaries @while read -r syscall binary params; do \ if grep -q "^$$syscall$$" $@/filtered.txt; then \ diff --git a/test/syscall_test/ltp/testcases/blocked/smp.txt b/test/syscall_test/ltp/testcases/blocked/smp.txt new file mode 100644 index 000000000..ec2785b27 --- /dev/null +++ b/test/syscall_test/ltp/testcases/blocked/smp.txt @@ -0,0 +1,3 @@ +# See https://github.com/asterinas/asterinas/issues/2152 +kill02 +kill08 \ No newline at end of file