068a1ca63e
Bootloader fork rebase:
- Base changed from 0.1.0 pre-patched archive to upstream 1.0.0 tag (c7eeb9f)
- Applied 0001-redbear-local-forks.patch (Cargo.toml crate path redirects)
- Applied fix-uefi-alloc-panic.patch equivalents (4 panic!() -> graceful
error handling in src/main.rs)
- Applied P5-live-preload-cap-1gib.patch (1 GiB cap on live image preload)
- Skipped: P0 GPT partition scan (requires new module + integration),
P1 timeout/default-resolution, P2 live preload guard (subsumed by
panic fixes + cap), P3 live image safe read, P4 large ISO boot,
redox.patch — to be applied in dedicated rebase session.
firmware-loader/Cargo.toml: version 0.1.0 -> 0.3.0 (sync with other
Red Bear custom crates which are at 0.3.0).
fork-upstream-map.toml: bootloader back from PENDING_REBASE to 1.0.0
since the partial rebase matches upstream 1.0.0 content.
fork-upstream-map.toml: base restored to 'main' tracked (was correctly
tracked by build-redbear.sh).
27 lines
1009 B
Bash
Executable File
27 lines
1009 B
Bash
Executable File
#!/bin/sh
|
|
: "${srcdir=.}"
|
|
. "$srcdir/init.sh"; path_prepend_ .
|
|
|
|
# Test NULL prefix. Result should not contain a number, except in lines that
|
|
# start with 'EDC' (IBM z/OS libc produces an error identifier before the
|
|
# error message).
|
|
${CHECKER} test-perror 2>&1 >/dev/null | LC_ALL=C tr -d '\r' > t-perror.tmp
|
|
grep -v '^EDC' t-perror.tmp | grep '[0-9]' > /dev/null \
|
|
&& fail_ "result should not contain a number"
|
|
|
|
# Test empty prefix. Result should be the same.
|
|
${CHECKER} test-perror '' 2>&1 >/dev/null | LC_ALL=C tr -d '\r' > t-perror1.tmp
|
|
diff t-perror.tmp t-perror1.tmp \
|
|
|| fail_ "empty prefix should behave like NULL argument"
|
|
|
|
# Test non-empty prefix.
|
|
${CHECKER} test-perror foo 2>&1 >/dev/null | LC_ALL=C tr -d '\r' > t-perror3.tmp
|
|
sed -e 's/^/foo: /' < t-perror.tmp > t-perror2.tmp
|
|
diff t-perror2.tmp t-perror3.tmp || fail_ "prefix applied incorrectly"
|
|
|
|
# Test exit status.
|
|
${CHECKER} test-perror >out 2>/dev/null || fail_ "unexpected exit status"
|
|
test -s out && fail_ "unexpected output"
|
|
|
|
Exit 0
|