Skip to content

Commit 450cde7

Browse files
ClaudelpcoxMossakaclaude
authored
test: fix exit code validation in test runner fixture (#792)
* Initial plan * feat: add rust one-shot-token library implementation Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * docs: update README for rust implementation Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * feat: update Dockerfile and entrypoint for rust build Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * Initial plan * fix: correct success field calculation in test runner - Normalize exitCode before evaluating success condition - Previously compared original result.exitCode (possibly undefined) to 0 - Now normalizes to 0 first, then uses normalized value for success check - Fixes issue where exit code 0 was incorrectly marked as failure Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> Co-authored-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 844a011 commit 450cde7

2 files changed

Lines changed: 422 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "one-shot-token"
3+
version = "0.1.0"
4+
edition = "2021"
5+
description = "LD_PRELOAD library for one-shot access to sensitive environment variables"
6+
license = "MIT"
7+
8+
[lib]
9+
name = "one_shot_token"
10+
crate-type = ["cdylib"]
11+
12+
[dependencies]
13+
libc = "0.2"
14+
once_cell = "1.19"
15+
16+
[profile.release]
17+
opt-level = 2
18+
lto = true
19+
strip = true

0 commit comments

Comments
 (0)