diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:06:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:57:58 +0900 |
| commit | 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch) | |
| tree | dfe9c40ceb8c1be8d2728a2db9017bffef174d3d /container/initplace_test.go | |
| parent | d23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (diff) | |
container/check: move absolute pathname
This allows use of absolute pathname values without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initplace_test.go')
| -rw-r--r-- | container/initplace_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/container/initplace_test.go b/container/initplace_test.go index e8ee6957..a330a804 100644 --- a/container/initplace_test.go +++ b/container/initplace_test.go @@ -4,13 +4,14 @@ import ( "os" "testing" + "hakurei.app/container/check" "hakurei.app/container/stub" ) func TestTmpfileOp(t *testing.T) { const sampleDataString = `chronos:x:65534:65534:Hakurei:/var/empty:/bin/zsh` var ( - samplePath = MustAbs("/etc/passwd") + samplePath = check.MustAbs("/etc/passwd") sampleData = []byte(sampleDataString) ) @@ -100,7 +101,7 @@ func TestTmpfileOp(t *testing.T) { {"zero", new(TmpfileOp), new(TmpfileOp), false}, {"differs path", &TmpfileOp{ - Path: MustAbs("/etc/group"), + Path: check.MustAbs("/etc/group"), Data: sampleData, }, &TmpfileOp{ Path: samplePath, |
