aboutsummaryrefslogtreecommitdiffstats
path: root/prog/prog_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/prog_test.go')
-rw-r--r--prog/prog_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/prog/prog_test.go b/prog/prog_test.go
index 29f2aee5b..96280b3e8 100644
--- a/prog/prog_test.go
+++ b/prog/prog_test.go
@@ -140,6 +140,22 @@ func TestVmaType(t *testing.T) {
}
}
+func TestFsckAttr(t *testing.T) {
+ target, err := GetTarget("test", "64")
+ if err != nil {
+ t.Fatal(err)
+ }
+
+ syscall := target.SyscallMap["test$fsck_attr"]
+ if syscall == nil {
+ t.Fatal("could not find test$fsck_attr in sys/test")
+ }
+
+ if syscall.Attrs.Fsck != "fsck.test -n" {
+ t.Fatalf("unexpected fsck command %s", syscall.Attrs.Fsck)
+ }
+}
+
// TestCrossTarget ensures that a program serialized for one arch can be
// deserialized for another arch. This happens when managers exchange
// programs via hub.